package com.license.logic.clonalselection;

import java.util.List;

import com.license.logic.alimentation.Alimentation;
import com.license.logic.alimentation.Food;
import com.license.logic.preference.Activity;

public class Antibody {
	

	private Alimentation alimentation ;
	private List<Activity> activities;
	private double weight;
	
//	public Antibody() {
//		super(false);
//		
//	}
//	
//	public Antibody(boolean isClone) {
//		super(isClone);
//		
//	}
	
	public Alimentation getAlimentation() {
		return alimentation;
	}
	public void setAlimentation(Alimentation alimentation) {
		this.alimentation = alimentation;
	}
	public List<Activity> getActivities() {
		return activities;
	}
	public void setActivities(List<Activity> activities) {
		this.activities = activities;
	}
	public double getAllCalories(){
		double value = 0;
		for(Activity activity : activities) {
			value -= activity.getKaloriesConsumed();
		}
		for(Food food : getAlimentation().getBreakFast()) {
			value += food.getKaloriesGain();
		}
		for(Food food : getAlimentation().getDinner()) {
			value += food.getKaloriesGain();
		}
		for(Food food : getAlimentation().getLunch()) {
			value += food.getKaloriesGain();
		}
		for(Food food : getAlimentation().getSnack()) {
			value += food.getKaloriesGain();
		}
		return value;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}
	

}
